package com.lcm.basic.p5.extend;

/**
 * @author Coder-lcm
 * @date 2021/3/31
 */
public class Children extends Base{
    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    private int age;

    public Children(int id, String name, int age) {
        super(id, name);
        this.age = age;
    }

    @Override
    public void baseMethod() {
        super.baseMethod();
        System.out.println("sayhello from children");
    }

    public void childrenMethod(){
        super.baseMethod();
    }
}
